package com.yq.design.singleton.lazyUnSafe;

/**
 * @ClassName Singleton
 * @Description 懒汉式线程不安全
 * @Author yaoqiang
 * @Date 2021/3/8 19:04
 * @Version 1.0
 */
public class Singleton {
    private static  Singleton instance;

    private Singleton() {
    }

    public static   Singleton getInstance(){
        if (instance==null){
            instance=new Singleton();
        }
        return instance;
    }
}
